package com.qf;

import com.qf.dao.UserDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @ClassName Demo
 * @Description TODO
 * @Author 86181
 * @Date 2022/8/31 23:23
 * @Version 1.0
 **/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:bean.xml")
public class Demo {
    @Autowired
    private UserDao userDao;
    @Test
    public void demo(){
        userDao.findAll();
    }
}
